package com.matt.foundation.vo.observation;

import com.matt.domain.observation.ObservationNewOption;
import lombok.Data;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2017/8/14
 * *******************************
 */
@Data
public class ObservationNewOptionVo {
    private String id;
    private String title;
    private Integer score;


    public static ObservationNewOptionVo of(ObservationNewOption option){
        ObservationNewOptionVo vo = new ObservationNewOptionVo();
        vo.setId(option.getId());
        vo.setScore(option.getScore());
        vo.setTitle(option.getTitle());
        return vo;
    }

//    public static ObservationNewOptionVo of(EvaluatingCEOption option){
//        ObservationNewOptionVo vo = new ObservationNewOptionVo();
//        vo.setId(option.getId());
//        vo.setScore(option.getScore());
//        vo.setTitle(option.getContent());
//        return vo;
//    }
}
